package com.thinklab.view3g;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class V3Main extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        final TabHost tabHost = getTabHost();
        tabHost.addTab(tabHost.newTabSpec("tab1")
                .setIndicator(getString(R.string.tab_report),getResources().getDrawable(R.drawable.tab_report))
                .setContent(new Intent(this, ReportActivity.class)));

        tabHost.addTab(tabHost.newTabSpec("tab2")
        		.setIndicator(getString(R.string.tab_setting),getResources().getDrawable(R.drawable.tab_setting))
                .setContent(new Intent(this, SettingActivity.class)));
        
        tabHost.addTab(tabHost.newTabSpec("tab3")
        		.setIndicator(getString(R.string.tab_info),getResources().getDrawable(R.drawable.tab_info))
                .setContent(new Intent(this, InfoActivity.class))
                );
        tabHost.setCurrentTab(0);
        
        startService(new Intent(this,V3NetworkService.class));
    }
}